REGISTRY.SYS_GET Function

Syntax

Data as C = REGISTRY.SYS_GET(C name[,C architecture])

Arguments

nameCharacter

The registry entry name and full path.

architectureCharacter

Default = 'Any'. The registry to read: '32', ' 64' or 'Any'. If set to 'Any', the 32-bit registry is searched first.

Returns

DataCharacter

Returns the value of the registry setting.

Description

Retrieve a system setting (requires full registry path).

Discussion

The REGISTRY.SYS_GET() method retrieves the value of a registry entry.

Example

The following example returns the Windows directory on your computer.

FUNCTION system_root as C ()
    system_root = Registry.sys_get("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\SystemRoot")
    IF (system_root = "") then
       system_root = Registry.sys_get("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\SystemRoot")
    END IF
END FUNCTION

ui_msg_box("", "" + system_root())

See Also